package org.jeecg.modules.api.fallback;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.api.IManageBaseAPI;
import org.jeecg.modules.manage.entity.CaishuiTaskSettle;
import org.jeecg.modules.manage.vo.ServiceFeeVo;

/**
 * 进入fallback的方法 检查是否token未设置
 * @author: jeecg-boot
 */
@Slf4j
public class ManageBaseAPIFallback implements IManageBaseAPI {

    @Setter
    private Throwable cause;

    @Override
    public Result<?> doIssuedSalary(CaishuiTaskSettle caishuiTaskSettle) {
        return Result.error("下发失败!");
    }

    @Override
    public Result<?> handleTaskSettle(String orderNo) {
        return Result.error("查询失败!");
    }

    @Override
    public Result<ServiceFeeVo> handleServiceFee(String idCard, Double amount, Double taxRate, Double taxRateTwo) {
        return null;
    }

    @Override
    public Result<?> queryRefundResult(String yurRef) {
        return Result.error("查询失败!");
    }

}
